home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
TECHNICA
/
AUTOCAD
/
H108.ZIP
/
SMAKER22.ZIP
/
REDEF.LSP
< prev
next >
Wrap
Lisp/Scheme
|
1989-07-23
|
1KB
|
34 lines
;ReDef.Lsp
;SCRIPTmaker Sample file
;(C)1988,89 AZCAD Melbourne Australia
;
;Function to redefine a block.
;Requires that the block redefinition be passed to it and resumes the script
;on completion of the redefintion.
;
;Sample Call: (ReDef "Window1=Window20")
;would redefine a block named Window1 with another named Window20
;
;Using the multiple variable feature of SCRIPTmaker, a sequence to edit a
;series of drawings could include the following lines:
; $(redef "Window1= Z2 ")
; $(redef "Window2= Z3 ")
; $(redef "Window3= Z4 ")
;A possible list file to match this sequence could read:
; #4
; EAST_EL,WindoFix,WindoSash,WindoLouv
; WEST_EL,WindoFix,WindoFix,WindoSlid
; NOTH_EL,WindoFix,WindFix,WindoFix
; SOTH_EL,WindoLouv,WindoSlid,WindoSlid
;ReDef would redefine the three window blocks differently for each drawing,
;taking Z2 from the second field, Z3 from the third field and Z4 from the
;fourth field on the list line.
;
;Sample Call: (redef "BlocA=BlocB")
;
(defun ReDef (BlkArg / )
(command "INSERT" BlkArg nil
"RESUME")
)
;End of function